preceded by a numerical parameter whose value is greater
than the current cursor position, this editing command
deletes from the cursor up to given cursor position.
rrrreeeeddddrrrraaaawwww Ctrl-L Line-feeds and print the current line.
ddddoooowwwwnnnn----hhhhiiiissssttttoooorrrryyyy Ctrl-N Fetches the next command line. Each time Ctrl-N is
entered, the next command line forward in time is
accessed.
ooooppppeeeerrrraaaatttteeee Ctrl-O Executes the current line and fetches the next line
relative to the current line from the history file.
uuuupppp----hhhhiiiissssttttoooorrrryyyy Ctrl-P Fetches the previous command. Each time CCCCttttrrrrllll----PPPP is
entered, the previous command back in time is accessed.
Moves back one line when not on the first line of a
multiple line command.
sssseeeeaaaarrrrcccchhhh----hhhhiiiissssttttoooorrrryyyy Ctrl-R _S_t_r_i_n_g Reverses search history for a previous command line
containing the string specified by the SSSSttttrrrriiiinnnngggg parameter.
If a value of zero is given, the search is forward. The
specified ssssttttrrrriiiinnnngggg is terminated by an _E_n_t_e_r or _n_e_w-_l_i_n_e
character. If the ssssttttrrrriiiinnnngggg is preceded by a ^^^^ (caret
character), the matched line must begin with SSSSttttrrrriiiinnnngggg. If
the SSSSttttrrrriiiinnnngggg parameter is omitted, then the next command
line containing the most recent SSSSttttrrrriiiinnnngggg is accessed. In
this case, a value of zero reverses the direction of the
search.
ttttrrrraaaannnnssssppppoooosssseeee----cccchhhhaaaarrrrssss Ctrl-T Transposes the current character with the next character
in eeeemmmmaaaaccccssss mode. Transposes the two previous characters
in ggggmmmmaaaaccccssss mode.
kkkkiiiillllllll----lllliiiinnnneeee Ctrl-U Deletes the entire input line.
kkkkiiiillllllll----rrrreeeeggggiiiioooonnnn Ctrl-W Kills from the cursor to the mark.
pppprrrreeeeffffiiiixxxx----2222 Ctrl-X Introduces a 2-character command sequence.
ppppoooopppp----tttteeeexxxxtttt Ctrl-Y Restores the last item removed from line. (Yanks the
item back to the line.)
sssseeeeaaaarrrrcccchhhh----cccchhhhaaaarrrr----ffffoooorrrrwwwwaaaarrrrdddd Ctrl-] _c Moves the cursor forward on the current line to the
indicated character.
sssseeeeaaaarrrrcccchhhh----cccchhhhaaaarrrr----bbbbaaaacccckkkkwwwwaaaarrrrdddd _P_r_e_f_i_x-_1 Ctrl-] _c Search backwards in the current line for the next
keyboard character. Moves the cursor backwards on the
current line to the indicated character.
qqqquuuuooootttteeee Ctrl-^ Escapes the next character. Editing characters can be
\ entered in a command line or in a search string if
preceded by a _q_u_o_t_e command. The escape removes the
next character's editing features, if any.
eeeeooootttt Ctrl-_ Acts as an end-of-file.
ccccoooommmmmmmmeeeennnntttt----eeeexxxxeeeeccccuuuutttteeee _P_r_e_f_i_x-_1 # Inserts a #### (pound sign) at the beginning of the line
and then execute the line. This causes a comment to be
inserted in the history file.
ccccoooommmmpppplllleeeetttteeee----lllliiiisssstttt _P_r_e_f_i_x-_1 * Attempts file name substitution on the current word. An
asterisk is appended if the word doesn't match any file
or contain any special pattern characters.
pppprrrreeeevvvv----hhhhiiiisssstttt----wwwwoooorrrrdddd _P_r_e_f_i_x-_1 . Inserts on the line the last word of the previous
ccccooooppppyyyy----llllaaaasssstttt----aaaarrrrgggg _P_r_e_f_i_x-_1 _ command. If preceded by a numeric parameter, the value
of this parameter determines which word to insert rather
_c_a_p_i_t_a_l_i_s_e-_c_h_a_r, _k_i_l_l-_t_o-_e_o_l, _s_e_a_r_c_h-_c_h_a_r-_f_o_r_w_a_r_d and
_s_e_a_r_c_h-_c_h_a_r-_b_a_c_k_w_a_r_d.
ccccaaaappppiiiittttaaaalllliiiisssseeee----cccchhhhaaaarrrr _P_r_e_f_i_x-_1 c Capitalises the current character.
ddddoooowwwwnnnnccccaaaasssseeee----cccchhhhaaaarrrr _P_r_e_f_i_x-_1 l Change the character under the cursor to lower case.
ppppuuuusssshhhh----tttteeeexxxxtttt _P_r_e_f_i_x-_1 p Pushes the region from the cursor to the mark on the
stack.
sssseeeetttt----mmmmaaaarrrrkkkk _P_r_e_f_i_x-_1 space Sets a mark.
uuuuppppccccaaaasssseeee----cccchhhhaaaarrrr _P_r_e_f_i_x-_1 u Change the character under the cursor to upper case.
yyyyaaaannnnkkkk----ppppoooopppp _P_r_e_f_i_x-_1 y Immediately after a yyyyaaaannnnkkkk, replaces the inserted text
string with the next previous killed text string.
eeeexxxxcccchhhhaaaannnnggggeeee----ppppooooiiiinnnntttt----aaaannnndddd----mmmmaaaarrrrkkkk _P_r_e_f_i_x-_2 Ctrl-X Interchanges the cursor and the mark.
jjjjoooobbbbssss _P_r_e_f_i_x-_2 j Print a list of the current jobs (OS/2 only).
aaaauuuuttttoooo----iiiinnnnsssseeeerrrrtttt Simply causes the character to appear as literal input.
(Most ordinary characters are bound to this.)
ddddeeeelllleeeetttteeee----cccchhhhaaaarrrr----ffffoooorrrrwwwwaaaarrrrdddd Deletes the character after the cursor.
Each time a command is executed, the above substitutions are
carried out. If the command name matches one of the _S_p_e_c_i_a_l
_C_o_m_m_a_n_d_s listed below, it is executed in the shell process.
If the command name does not match a _S_p_e_c_i_a_l _C_o_m_m_a_n_d, but
matches the name of a defined function, the function is
executed in the shell process (note how this differs from
the execution of shell procedures). The positional
parameters $$$$1111, $$$$2222, .... are set to the arguments of the
function. If the command name matches neither a _S_p_e_c_i_a_l
_C_o_m_m_a_n_d nor the name of a defined function, a new process is
created and an attempt is made to execute the command via
_e_x_e_c(2).
The shell parameter PPPPAAAATTTTHHHH defines the search path for the
directory containing the command. Alternative directory
names are separated by a semi-colon (;;;;). The default path
is ....;;;;cccc::::////bbbbiiiinnnn;;;;cccc::::////uuuussssrrrr////bbbbiiiinnnn (specifying the current directory,
cccc::::////bbbbiiiinnnn, and cccc::::////uuuussssrrrr////bbbbiiiinnnn, in that order). Note that the
current directory is specified by a null path name, which
can appear immediately after the equal sign or between the
semi-colon delimiters anywhere else in the path list. If
the command name contains a //// or starts with xxxx:::: (where x is
a drive letter) the search path is not used; such commands
will not be executed by the restricted shell. Otherwise,
each directory in the path is searched for an executable
file. Executable files are indicated by a .exe or .com
extension. This extension is automatically supplied by the
shell and not have to be entered by the user.
If the file with a .com or .exe extension cannot be found in
the directory, the file is opened and first 512 characters
are read. If there are no characters in the block with a
value in the range 0 to 7, the file is assumed to be a
script file containing shell commands. Note that the shell
will check the file and if that file does not exist or is
not a script, it will try the file with an extension of ....sssshhhh
or ....kkkksssshhhh. If a ((((ggggiiiivvvveeeennnn bbbbyyyy tttthhhheeee eeeennnnvvvviiiirrrroooonnnnmmmmeeeennnntttt vvvvaaaarrrriiiiaaaabbbblllleeee SSSSHHHHEEEELLLLLLLL) is
spawned to read it.
If the script file starts with the a line of the form #!
_i_n_t_e_r_p_r_e_t_e_r [_a_r_g_u_m_e_n_t_s], the interpreter is invoked instead
of the shell to process the script. Optional arguments can
be supplied in the script file which are passed before the
name of the script file. Thus, if the file _d_e_m_o contained
the following string as the first line
#! perl -sP
Entering _d_e_m_o _n_a_m_e would be equivalent to entering the _p_e_r_l
-_s_P _n_a_m_e at the command prompt. Note that no other
For each _n_a_m_e specified, indicate how it would be
interpreted if used as a command name. Note that ttttyyyyppppeeee
is a shorthand for wwwwhhhheeeennnncccceeee ----vvvv. If the -_t option is
used, the shell will report the executable type of _n_a_m_e
(MS Windows, Character-based, MS-DOS, OS/2, MS Windows
NT, etc).
----pppp Does a path search for _n_a_m_e even if the name is an
alias, a function, or a reserved word.
----vvvv Produces a more verbose report.
IIIInnnnvvvvooooccccaaaattttiiiioooonnnn
If the shell is invoked through _e_x_e_c(2) and the first
character of argument zero is ---- or the ----0000(zero) switch is in
the invocation line, commands are initially read from
////eeeettttcccc////pppprrrrooooffffiiiilllleeee (the extensions ....sssshhhh or ....kkkksssshhhh may be used) and
from $$$$HHHHOOOOMMMMEEEE////pppprrrrooooffffiiiilllleeee (the extensions rrrreeeeaaaadddd ffffrrrroooommmm tttthhhheeee ffffiiiilllleeee nnnnaaaammmmeeeedddd